package main

/*
	html 模版渲染
*/
import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.New()

	r.LoadHTMLGlob("templete/*")



	r.GET("/stu", func(context *gin.Context) {

		context.HTML(http.StatusOK,"index.html",gin.H{
			"title":"hello,gin",
			"date":"2020-02-15",
		})
	})

	r.Run()
}
